<include file="__PUBLIC__/head.html"/>
<css file="__PUBLIC__/css/category.css"/>
<js file="__PUBLIC__/js/category.js"/>
</head>
<body>
    <form action="__CONTROL__/edit" method="post">
        
        <div class="content add_show">
            <input type="hidden" name="cat_id" value="{$category.cat_id}"/>
            <h2>基本设置</h2>
            <table class="table1">
                <tr>
                    <th>栏目名称</th>
                    <td>
                        <input type="text" name="cat_name" value="{$category.cat_name}"/>
                    </td>
                </tr>
                
                 <tr>
                    <th>列表模板</th>
                    <td>
                        <select name="list_tpl">
                            <option value="{$list}">={$list}=</option>
                            <list from="$filename" name="$c">
                            <option value="{$c.name}">{$c.name}</option>
                            </list>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>内容页</th>
                    <td>
                        <select name="arc_tpl">
                            <option value="{$arc}">={$arc}=</option>
                            <list from="$filename" name="$c">
                            <option value="{$c.name}">{$c.name}</option>
                            </list>
                        </select>
                    </td>
                </tr>                
                <if value="$category.cat_pid!=0">
                <tr>
                    <th>父级栏目</th>
                    <td>
                        <select name="cat_pid">
                            <list from="$cat_all" name="$c">
                                <if value="$category.cat_pid==$c.cat_id">
                                    <option value="{$c.cat_id}" selected="selected">{$c.html}{$c.cat_name}</option>
                                    <else>	
                                        <option value="{$c.cat_id}">{$c.html}{$c.cat_name}</option>
                                </if>
                            </list>
                        </select>
                    </td>
                </tr>
                </if>
            </table>
            <h2>SEO设置</h2>
            <table class="table1">
                <tr>
                    <th>关键字</th>
                    <td>
                        <input type="text" name="keywords" value="{$category.keywords}"/>
                    </td>
                </tr>
                <tr>
                    <th>描述</th>
                    <td>
                        <textarea cols="50" row="8" name="description">{$category.description}</textarea>
                    </td>
                </tr>
            </table>
            <div>
                <input type="submit" value="修改"/>
            </div>
        </div>
    </form>


</body>
</html>